package zhtt01.config;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

/**
 * Created by zhtt on 2016/10/30.
 */
@EnableAutoConfiguration
@ComponentScan(basePackages = { "zhtt01.controller" })
@ImportResource("classpath:applicationContext.xml")
public class AppConfig01 {

    /**
     *
     运行后访问：http://localhost:8080/user1/id
     默认端口为：8080
     * @param args
     */
    public static void main(String[] args) {
        SpringApplication.run(AppConfig01.class);
    }
}
